<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../pccommon.jsp"%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>提现中心</title>
<link type="text/css" rel="stylesheet" href="${staticPath}/pccss/grzx.css" />
</head>
<body>
	<input type="hidden" value="${key }" id="key" />
	<input type="hidden" value="${purse }" id="purse" />
	<div id="wrapper">
		<c:import url="../layout/header2.jsp"></c:import>
		<div id="main">
			<div id="mainw">
				<c:import url="../layout/leftNav.jsp">
					<c:param name="leftNav" value="money" />
				</c:import>
				<div class="mainw_right">
					<div class="mainw_right1">
						<img src="${staticPath}/pcimages/a1.png" />
						<h1>提现中心</h1>
					</div>
					<div class="mainw_right8">
						<table width="900" border="0" class="table1">
							<tr class="td1">
							<td style="width: 20px; text-align: center;"></td>
								<td style="width: 240px; text-align: center;">已添加 <num id="num">${bankcardList.size()}</num>张银行卡</td>
								<td style="width: 380px; text-align: center;">
								<input type="button" class="td1b tc" value="+添加银行卡" onclick="gotoHtml('/bankcard/bankcard.htm')"/></td>
								<td style="width: 140px; text-align: center;"></td>
								<td style="width: 240px; text-align: center;"></td>
							</tr>
							<c:forEach items="${bankcardList}" var="bankcard">
							<tr class="td1" id="${bankcard.id}">
								<td style="width: 20px; text-align: center;">
								<input type="radio" value="${bankcard.id}"name="myradio" <c:if test="${ bankcard.isDefault==1}">checked="checked"</c:if> /></td>
								<td style="width: 240px; text-align: center;">${bankcard.bank.name}${bankcard.branch}
								<c:if test="${bankcard.branch!=null}">支行</c:if></td>
								<td style="width: 380px; text-align: center;">卡号：${bankcard.bankCode}</td>
								<td style="width: 140px; text-align: center;">${bankcard.cardholder}</td>
								<td style="width: 240px; text-align: center;">
									<c:if test="${ bankcard.isDefault==1}">
									<span class="td1s"> 当前默认 </span> 
									</c:if>
									<c:if test="${ bankcard.isDefault==0}">
									<a href="javascript:defaultBankcard(${bankcard.id});" class="td1a">设为默认</a>
									<a href="javascript:deleteBankcard('${bankcard.id}');" class="td1a">删除</a>
									</c:if>
									<a href="javascript:editBankcard(${bankcard.id});" class="td1a">编辑</a>
								</td>
							</tr>		
							</c:forEach>		
						</table>
					</div>
					<div class="mainw_right4">
						<label style="margin-left:50px;">可用余额：￥<fmt:formatNumber value="${purse/100}" pattern="#,###.##" /></label>
					</div>
					<div class="mainw_right4">
						<label>提现金额：</label>
						<input id="money" type="text" onfocus="focusplace(this,'请输入提现金额')" onblur="blurplace(this,'请输入提现金额')" value="请输入提现金额" />
					</div>
					<div class="mainw_right4">
						<label>支付密码：</label>
						<input id="payPass" type="password" onfocus="focusplace(this,'请输入支付密码')" onblur="blurplace(this,'请输入支付密码')" value="请输入支付密码" />
					</div>
					<div class="mainw_right5">
						<input type="button" class="btn22" value="确定" onclick="submit()"/>
					</div>
				</div>
				<!--mainw_right end-->
			</div>
		</div>
		<div style="clear: both;"></div>
		<!--main end-->
		<c:import url="../layout/footer.jsp"></c:import>
	</div>
	<!--wrapper end-->
</body>

<script type="text/javascript" src="${staticPath}/js/app/money/pcwithdrawals.js"></script>
</html>

